ifeq ($(TOP_DIR),) 
KERNEL_DIR :=$(srctree)

obj-m += drv_spi.o
drv_spi-objs := spi-hisi.o
else
obj-m += drv_spi.o
drv_spi-objs := spi-hisi.o
endif